I've been using PDCurses in a rogue-like project recently, and one of the functions (in PDCurses) allows me to enter an arbitrary number of arguments, separated by a |. I.E. I could calland all the output after it would be bold, and use color pair 1.Code:attron(COLOR_PAIR(1) | A_BOLD);
While it's nothing I need to use at the moment, it has me wondering how exactly one would write a function to take arguments like that. Google searching for it is difficult, since it seems to ignore the | in the search text. So any information or links to a good source where I can study up on this would be great.
Thanks,
Timothy